package com.tnr.scgcxx.service.safty;

import java.util.List;

import com.tnr.scgcxx.dto.safty.RoleDto;
import com.tnr.scgcxx.dto.safty.UserDto;
import com.tnr.scgcxx.model.safty.User;

public interface UserService {
    UserDto findUser(String id,String pwd);

	List<User> findUsers(User user);

	int addUser(User user);
	int deleteUserByIds(String[] u_ids);

	int updateUserStatusByIds(String[] u_ids, String u_status);

	int updateUser(User user);

	int deleteUserById(String u_id);

	User findUserById(String id);

	List<RoleDto> getUserRolesById(String u_id);

	void setUserRoles(Integer[] ro_ids, String u_id);

}
